package com.pan.admin.module.distribute.service.impl;

import com.pan.admin.module.distribute.dao.LoanDistributeStatisticDao;
import com.pan.admin.module.distribute.entity.LoanDistributeStatistic;
import com.pan.admin.module.distribute.entity.qo.LoanDistributeStatisticQO;
import com.pan.admin.module.distribute.service.LoanDistributeStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 统计业务实现层
 */
@Service
public class LoanDistributeStatisticServiceImpl implements LoanDistributeStatisticService {

    @Autowired
    private LoanDistributeStatisticDao loanDistributeStatisticDao;

    @Override
    @Transactional(readOnly = true)
    public List<LoanDistributeStatistic> listLinkUv(LoanDistributeStatisticQO loanDistributeStatisticQO) {
        return loanDistributeStatisticDao.listLinkUv(loanDistributeStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanDistributeStatistic> listLinkPv(LoanDistributeStatisticQO loanDistributeStatisticQO) {
        return loanDistributeStatisticDao.listLinkPv(loanDistributeStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanDistributeStatistic> listGroupUv(LoanDistributeStatisticQO loanDistributeStatisticQO) {
        return loanDistributeStatisticDao.listGroupUv(loanDistributeStatisticQO);
    }

    @Override
    @Transactional(readOnly = true)
    public List<LoanDistributeStatistic> listGroupPv(LoanDistributeStatisticQO loanDistributeStatisticQO) {
        return loanDistributeStatisticDao.listGroupPv(loanDistributeStatisticQO);
    }

    @Override
    public List<LoanDistributeStatistic> listGroupUvSum() {
        return loanDistributeStatisticDao.listGroupUvSum();
    }

    @Override
    public List<LoanDistributeStatistic> listGroupPvSum() {
        return loanDistributeStatisticDao.listGroupPvSum();
    }

}
